{{#each fields}}
    <div class="col-md-{{or ../columns 12}}">
        <div class="form-group">
            <label>{{label}}</label>
            {{#if_eq type 'text'}}
                {{#if btn}}
                    <div class="input-group">
                        <input name="{{@key}}" type="{{type}}" class="form-control {{classes}}"
                               placeholder="请输入{{label}} ..." {{status}}/>
                        <a href="javascript:;" id="{{btn.id}}"
                           class="input-group-addon bg-green-active">{{btn.name}}</a>
                    </div>
                {{^}}
                    <input name="{{@key}}" type="{{type}}" class="form-control {{classes}}"
                           placeholder="请输入{{label}} ..." {{status}}/>
                {{/if}}
            {{/if_eq}}
            {{#if_eq type 'password'}}
                <input name="{{@key}}" type="{{type}}" class="form-control {{classes}}"
                       placeholder="请输入{{label}} ..." {{status}}/>
            {{/if_eq}}
            {{#if_eq type 'select'}}
                <select name="{{@key}}" class="form-control {{classes}}" {{status}}>
                    {{#each options}}
                        <option value="{{name}}">{{value}}</option>
                    {{/each}}
                </select>
            {{/if_eq}}
            {{#if_eq type 'textarea'}}
                <textarea name="{{@key}}" class="form-control {{classes}}"
                          placeholder="请输入{{label}} ..." {{status}}></textarea>
            {{/if_eq}}
        </div>
    </div>
{{/each}}